<html>
<head><meta charset="utf-8"><title>Weird Windows likning failures · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html">Weird Windows likning failures</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="180222291"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180222291" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180222291">(Nov 08 2019 at 11:47)</a>:</h4>
<p>When <a href="https://github.com/rust-lang/miri/pull/1040" target="_blank" title="https://github.com/rust-lang/miri/pull/1040">bumping the Rust version we test Miri against</a>, I am seeing weird Windows <a href="https://ci.appveyor.com/project/rust-lang-libs/miri/builds/28710503/job/5n12ho87cfli8rtr" target="_blank" title="https://ci.appveyor.com/project/rust-lang-libs/miri/builds/28710503/job/5n12ho87cfli8rtr">linking failures on AppVeyor</a>:</p>
<div class="codehilite"><pre><span></span>      libcompiler_builtins-0406f6527c70a3b2.rlib(compiler_builtins-0406f6527c70a3b2.compiler_builtins.7xzcwl4z-cgu.5.rcgu.o) : error LNK2019: unresolved external symbol __sync_val_compare_and_swap_16 referenced in function __llvm_memcpy_element_unordered_atomic_16
          libcompiler_builtins-0406f6527c70a3b2.rlib(compiler_builtins-0406f6527c70a3b2.compiler_builtins.7xzcwl4z-cgu.5.rcgu.o) : error LNK2019: unresolved external symbol __sync_lock_test_and_set_16 referenced in function __llvm_memcpy_element_unordered_atomic_16
          C:\Users\appveyor\AppData\Local\Temp\1\xargo.Z8yElWQ4nM3b\target\x86_64-pc-windows-msvc\release\deps\std.dll : fatal error LNK1120: 2 unresolved externals
</pre></div>


<p>Does anyone have any idea what that could be about, and why this started happening now?</p>



<a name="180223959"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180223959" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180223959">(Nov 08 2019 at 12:14)</a>:</h4>
<p>hm, cc <span class="user-mention" data-user-id="132920">@gnzlbg</span> and <span class="user-mention" data-user-id="116015">@Alex Crichton</span> I guess</p>



<a name="180230279"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180230279" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180230279">(Nov 08 2019 at 13:42)</a>:</h4>
<p>Weird, __sync_val_compare_and_swap_16 appears to not be available there</p>



<a name="180230336"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180230336" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180230336">(Nov 08 2019 at 13:43)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> appears you might be hitting: <a href="https://github.com/rust-lang/compiler-builtins/issues/316#issuecomment-537128271" target="_blank" title="https://github.com/rust-lang/compiler-builtins/issues/316#issuecomment-537128271">https://github.com/rust-lang/compiler-builtins/issues/316#issuecomment-537128271</a></p>



<a name="180230669"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180230669" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180230669">(Nov 08 2019 at 13:47)</a>:</h4>
<p>What is <code>cargo miri setup</code> doing ? Is it calling <code>xargo</code> ? ^^^ cc <span class="user-mention" data-user-id="119581">@mati865</span></p>



<a name="180234770"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180234770" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180234770">(Nov 08 2019 at 14:36)</a>:</h4>
<blockquote>
<p>What is <code>cargo miri setup</code> doing ? Is it calling <code>xargo</code> ? ^^^ cc <span class="user-mention silent" data-user-id="119581">mati865</span></p>
</blockquote>
<p>yes it is</p>



<a name="180234792"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180234792" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180234792">(Nov 08 2019 at 14:37)</a>:</h4>
<p>turns out a new <code>compiler_builtins</code> was released yesterday</p>



<a name="180234804"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180234804" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180234804">(Nov 08 2019 at 14:37)</a>:</h4>
<p>so my current best guess is that that's the culprit</p>



<a name="180234829"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180234829" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180234829">(Nov 08 2019 at 14:37)</a>:</h4>
<p>the released version of xargo doesnt use the lockfile, hence we cannot even reproduce prior builds</p>



<a name="180301467"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Weird%20Windows%20likning%20failures/near/180301467" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Weird.20Windows.20likning.20failures.html#180301467">(Nov 09 2019 at 07:44)</a>:</h4>
<p><a href="https://github.com/rust-lang/compiler-builtins/issues/322" target="_blank" title="https://github.com/rust-lang/compiler-builtins/issues/322">https://github.com/rust-lang/compiler-builtins/issues/322</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>